package com.baijia.commons.tianxiao;

import java.io.Serializable;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;


/**
 * @title OrgAppToken
 * @desc 机构app token 
 * @author caoliang
 * @date 2015年12月2日
 * @version 1.0
 */
public class OrgAppToken implements Serializable {

    private static final long serialVersionUID = -5114238847802130623L;

    private Integer user_id;
    
    private Integer ct;
    
    private String salt;
    
    private Long cascade_user_id;

    private String auth;
    
    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public Integer getCt() {
        return ct;
    }

    public void setCt(Integer ct) {
        this.ct = ct;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public Long getCascade_user_id() {
    
        return cascade_user_id;
    }

    public void setCascade_user_id(Long cascade_user_id) {
    
        this.cascade_user_id = cascade_user_id;
    }

    public String getAuth() {
    
        return auth;
    }

    public void setAuth(String auth) {
    
        this.auth = auth;
    }
    
    @Override
    public int hashCode() {
        return HashCodeBuilder.reflectionHashCode(this);
    }

    

    @Override
    public boolean equals(Object obj) {
        return EqualsBuilder.reflectionEquals(this, obj);
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
    }
}
